<template>
  <div class="ee">
    <div class="yy" v-show="!findNoneq">
      <v-nav></v-nav>
      <v-swiper></v-swiper>
      <div class="iconziyuan iconfont search" @click="searchs"></div>
    </div>
    <div class="tt" v-if="findNoneq">
      <router-view></router-view>
    </div>
    <!-- <disc></disc> -->
    <player></player>
  </div>
</template>

<script>
import nav from '@/base/nav/nav'
import swiper from '@/base/swiper/swiper'
import player from '@/components/player/player'
// import Disc from '@/components/disc/disc'
import { mapGetters, mapMutations } from 'vuex'
// import SingerDetall from '@/components/singer-detall'

export default {
  computed: {
    ...mapGetters([
      'findNoneq'
    ])
  },
  components: {
    'v-nav': nav,
    'v-swiper': swiper,
    player
    // Disc
    // SingerDetall
  },
  methods: {
    searchs () {
      this.setFindNoneq(true)
      this.$router.push({
        path: '/search'
      })
      console.log(9)
    },
    ...mapMutations({
      setFindNoneq: 'SET_FINDNONEQ_STATE'
    })
  }
}
</script>

<style lang="less">
.ee, .yy, .tt{
  height: 100%;
}
.search {
  position: fixed;
  top: 23px;
  right: 10px;
  z-index: 99;
}
</style>
